<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>

<fieldset class="adminform">
<legend><?php echo 'Dane pracownika'; ?></legend>
	<table class="admintable" cellspacing="1">
		<tr>
			<td class="key">
				<label for="name">
					Imię i nazwisko
				</label>
			</td>
			<td>
				<?php if ( $form_edit ) { ?>
					<input type="text" name="name" id="name" class="inputbox" size="40"                    value="<?php echo htmlspecialchars($this->user->get('name')); ?>" />
				<?php } else {  ?>
					<input type="text" name="name" id="name" class="inputbox" size="40" readonly="readonly" value="<?php echo htmlspecialchars($this->user->get('name')); ?>" />
				<?php } ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="ulica">
					Nazwa ulicy
				</label>
			</td>
			<td>
				<?php if ( $form_edit ) { ?>
					<input type="text" name="ulica" id="ulica" class="inputbox" size="40"                     value="<?php echo htmlspecialchars($this->user->get('ulica')); ?>" />
				<?php } else {  ?>
					<input type="text" name="ulica" id="ulica" class="inputbox" size="40" readonly="readonly" value="<?php echo htmlspecialchars($this->user->get('ulica')); ?>" />
				<?php } ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="nr_d_m">
					Nr domu / mieszkania
				</label>
			</td>
			<td>
				<?php if ( $form_edit ) { ?>
					<input type="text" name="nr_d" id="nr_d" class="inputbox" size="15"                    value="<?php echo $this->user->get('nr_d'); ?>" />
					<span>/</span>
					<input type="text" name="nr_m" id="nr_m" class="inputbox" size="15"                    value="<?php echo $this->user->get('nr_m'); ?>" />
				<?php } else {  ?>
					<input type="text" name="nr_d" id="nr_d" class="inputbox" size="15" readonly="readonly" value="<?php echo $this->user->get('nr_d'); ?>" />
					<span>/</span>
					<input type="text" name="nr_m" id="nr_m" class="inputbox" size="15" readonly="readonly" value="<?php echo $this->user->get('nr_m'); ?>" />
				<?php } ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="kod">
					Kod
				</label>
			</td>
			<td>
				<?php if ( $form_edit ) { ?>
					<input type="text" name="kod" id="kod" class="inputbox" size="6" maxlength="6"                    value="<?php echo $this->user->get('kod'); ?>" />
				<?php } else {  ?>
					<input type="text" name="kod" id="kod" class="inputbox" size="6" maxlength="6" readonly="readonly" value="<?php echo $this->user->get('kod'); ?>" />
				<?php } ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="miasto">
					Miasto
				</label>
			</td>
			<td>
				<?php if ( $form_edit ) { ?>
					<input type="text" name="miasto" id="miasto" class="inputbox" size="40"                    value="<?php echo htmlspecialchars($this->user->get('miasto')); ?>" />
				<?php } else {  ?>
					<input type="text" name="miasto" id="miasto" class="inputbox" size="40" readonly="readonly" value="<?php echo htmlspecialchars($this->user->get('miasto')); ?>" />
				<?php } ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="nr_do">
					Nr dowodu osobistego
				</label>
			</td>
			<td>
				<?php if ( $form_edit ) { ?>
					<input type="text" name="nr_do" id="nr_do" class="inputbox" size="40"                     value="<?php echo $this->user->get('nr_do'); ?>" />
				<?php } else {  ?>
					<input type="text" name="nr_do" id="nr_do" class="inputbox" size="40" readonly="readonly" value="<?php echo $this->user->get('nr_do'); ?>" />
				<?php } ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="pesel">
					Pesel
				</label>
			</td>
			<td>
				<?php if ( $form_edit ) { ?>
					<input type="text" name="pesel" id="pesel" class="inputbox" maxlength="11" size="40"                    value="<?php echo $this->user->get('pesel'); ?>" autocomplete="off" />
				<?php } else {  ?>
					<input type="text" name="pesel" id="pesel" class="inputbox" maxlength="11" size="40" readonly="readonly" value="<?php echo $this->user->get('pesel'); ?>" autocomplete="off" />
				<?php } ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="nr_pj">
					Nr prawa jazdy
				</label>
			</td>
			<td>
				<?php if ( $form_edit ) { ?>
					<input type="text" name="nr_pj" id="nr_pj" class="inputbox" size="40"                     value="<?php echo $this->user->get('nr_pj'); ?>" />
				<?php } else {  ?>
					<input type="text" name="nr_pj" id="nr_pj" class="inputbox" size="40" readonly="readonly" value="<?php echo $this->user->get('nr_pj'); ?>" />
				<?php } ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="data_wyd">
					Data wydania
				</label>
			</td>
			<td>
				<?php if ( $form_edit ) { 
					echo JHTML::_('calendar',$this->user->get('d_wyd'),'d_wyd','d_wyd');
			 	} else {  ?>
					<input type="text" name="d_wyd" id="d_wyd" class="inputbox" size="40" readonly="readonly"  value="<?php echo $this->user->get('d_wyd'); ?>" />       	       
				<?php } ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="data_waz">
					Data ważności
				</label>
			</td>
			<td>
				<?php if ( $form_edit ) { 
					echo JHTML::_('calendar',$this->user->get('d_waz'),'d_waz','d_waz');
			 	} else {  ?>
					<input type="text" name="d_waz" id="d_waz" class="inputbox" size="40" readonly="readonly"  value="<?php echo $this->user->get('d_waz'); ?>" />       	       
				<?php } ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="email">
					E-mail
				</label>
			</td>
			<td>
				<?php if ( $form_edit ) { ?>
					<input class="inputbox" type="text" name="email" id="email" size="40"                     value="<?php echo $this->user->get('email'); ?>" />
				<?php } else {  ?>
					<input class="inputbox" type="text" name="email" id="email" size="40" readonly="readonly" value="<?php echo $this->user->get('email'); ?>" />
				<?php } ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="telefon">
					Nr telefonu kom.
				</label>
			</td>
			<td>
				<?php if ( $form_edit ) { ?>
					<input type="text" name="telefon" id="telefon" class="inputbox" maxlength="9" size="40"                     value="<?php echo $this->user->get('telefon'); ?>" />
				<?php } else {  ?>
					<input type="text" name="telefon" id="telefon" class="inputbox" maxlength="9" size="40" readonly="readonly" value="<?php echo $this->user->get('telefon'); ?>" />
				<?php } ?>
			</td>
		</tr>
	</table>
</fieldset>


